From 9698cd67a1ff01c8f7bf7da76bf3347b9fa0d31b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Sat, 3 Oct 2020 11:48:36 +0200 Subject: [PATCH] gdkgl: Remove flipping when downloading GL texture This fix is correct and fixes: 1) GL textures being upside down in the inspector. They are getting downloaded because they've been created in a different GL context 2) GL textures being upside down in the cairo renderer (same reason) However, it breaks the testsuite. We do the flipping via the projection matrix, but most of the shaders don't care about that. --- gdk/gdkgl.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gdk/gdkgl.c b/gdk/gdkgl.c index 00b0272c8c..56dce18333 100644 --- a/gdk/gdkgl.c +++ b/gdk/gdkgl.c @@ -419,10 +419,6 @@ gdk_cairo_draw_from_gl (cairo_t *cr, cairo_surface_mark_dirty (image); - /* Invert due to opengl having different origin */ - cairo_scale (cr, 1, -1); - cairo_translate (cr, 0, -height / buffer_scale); - cairo_set_source_surface (cr, image, 0, 0); cairo_set_operator (cr, CAIRO_OPERATOR_OVER); cairo_paint (cr); -- 2.30.2